<script setup>
const props = defineProps({
  title: {
    type: String,
    default: '',
  },
  selectOptions: {
    type: Array,
    default: () => [],
  },
})
</script>

<template>
  <div class="card">
    <div class="title-area">
      <div class="left">
        <div class="title">{{ title }}</div>
        <div class="select">
          <slot name="title-select"></slot>
        </div>
      </div>
      <div class="right">
        <slot name="title-right"></slot>
      </div>
    </div>
    <div class="content-area">
      <slot></slot>
    </div>
  </div>
</template>

<style scoped lang="scss">
.card {
  opacity: 1;
  visibility: visible;
  box-shadow: rgba(0, 0, 0, 0.14) 0 2px 6px 0;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: rgb(255, 255, 255);

  .title-area {
    box-sizing: border-box;
    width: 100%;
    height: 80px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .left {
      display: flex;
      align-items: center;
      .title {
        width: 220px;
        color: rgb(16, 16, 16);
        font-size: 20px;
        font-family: AlibabaPuHui;
        font-weight: 600;
      }
    }

    .right {
      :deep(.el-radio-group) {
        .el-radio-button {
          //--el-radio-button-checked-border-color: #52c7ff;
        }

        .el-radio-button.is-active {
          //color: white;

          .el-radio-button__inner {
            //background: rgb(22, 132, 252);
            //color: white;
            // border-radius: 6px;
          }
        }

        .el-radio-button__inner {
          //border-color: #52c7ff;
          min-width: 88px;
          --el-border-radius-base: 0;
          //--el-fill-color-blank: rgba(6, 29, 58, 0.9);
          //--el-button-bg-color: #437be6;
          display: flex;
          align-items: center;
          justify-content: center;
          //color: rgb(22, 132, 252);
          //background-color: white;

          .svg-icon {
            width: 16px;
            height: 14px;
          }
        }

        &.special-radio {
          .el-radio-button__inner {
            //min-width: 0;
          }
        }
      }
    }
  }

  .content-area {
    height: calc(100% - 80px);
  }
}
</style>
